package com.simtop.service.impl;

import com.simtop.mapper.PermissionMapper;
import com.simtop.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @ClassName PermissionServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-09-15 13:19
 **/
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    /**
     * 根据用户id获取用户权限
     * @param userId 用户id
     * @return
     */
    @Override
    public Set<String> getPermsByUserId(Long userId) {
        return permissionMapper.getPermsByUserId(userId);
    }
}
